package cn.kgc.service;


import cn.kgc.pojo.Houserole;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface HouseroleService {
    //分页查询
    PageInfo<Houserole> queryForKeywordSearch(Integer pageNum, Integer pageSize, String keyword);

    //详情 根据id查询
    public Houserole selectByIdUser(Integer id);


    //批量删除回显
    public List<Houserole> getUserListByIdList(List<Integer> userIdList);

    //根据id删除
    public void batchRemove(List<Integer> userIdList);

    //单条删除
    public void remove(Integer id);


    //详情 根据id查询
    public Houserole selectById(Integer id);

    //修改
    public void updateUser(Houserole user);


    //增加
    public void saveUser(Houserole user);


    //查询已分配角色
    public List<Houserole> getAssignedRoleList(Integer userId);
    //查询未分配角色
    public List<Houserole> getUnAssignedRoleList(Integer userId);

    //更新关系
    public void updateRelationship(Integer userId, List<Integer> roleIdList);
}
